eloquent get only some columns

106

eloquent get only some columns -

Table::select('name','surname')->where('id', 1)->get();

Comments

Submit
0 Comments